package com.bana.fvs.model;

import com.bana.fvs.code.DeviceType;
import com.bana.sys.model.TreeNode;

/**
 * 雾灯
 */
public class Lamp extends TreeNode
{
	//基本
	private int wdbm;
	private int wqbm;
	private String wqmc;
	private int kzqbm;
	private int kzqbsm;
	private String kzqmc;
	private int kzqdk;

	//树节点
	@Override
	public String getId() {
		return String.format("%d%03d%05d", DeviceType.Lamp,kzqbsm,wdbm);
	}
	@Override
	public int getKey() {
		return wdbm;
	}
	@Override
	public String getName() {
		return "雾灯"+this.wdbm;
	}
	@Override
	public int getType() {
		return DeviceType.Lamp;
	}
	@Override
	public boolean isLeaf() {
		return true;
	}

	//状态
	private int mzt;
	private int wdzt;
	private int dyzt;
	private int ddyzt;
	private int sbpd;
	private int sbzt;
	private int wdljzt;

	//属性
	private int ledzt;
	private int ldzt;
	private int sfbj;

	//字典值
	private String ddyztsm;
	private String dyztsm;
	private String wdztsm;
	private String ledztsm;
	private String ldztsm;
	private String mztsm;
	private String sbpdsm;
	private String sfbjsm;
	private String sbztsm;
	private String wdljztsm;

	//数据字段
	private int xdcdy;
	private int tyndy;
	private int wdwd;
	private int bjdm;

	/**
	 * 是否碰撞
	 */
	private int hasCrash;
	private String hasCrashsm="正常";

	public String getXdcdysm() {

		return String.format("%.1f",xdcdy/10.0);
	}
	public String getTyndysm() {

		return String.format("%.1f",tyndy/10.0);
	}


	public String getSbztsm() {
		return sbztsm;
	}

	public void setSbztsm(String sbztsm) {
		this.sbztsm = sbztsm;
	}

	public String getSbpdsm() {
		return sbpdsm;
	}

	public void setSbpdsm(String sbpdsm) {
		this.sbpdsm = sbpdsm;
	}

	public String getMztsm() {
		return mztsm;
	}

	public void setMztsm(String mztsm) {
		this.mztsm = mztsm;
	}

	public String getWdztsm() {
		return wdztsm;
	}

	public void setWdztsm(String wdztsm) {
		this.wdztsm = wdztsm;
	}

	public String getDyztsm() {
		return dyztsm;
	}

	public void setDyztsm(String dyztsm) {
		this.dyztsm = dyztsm;
	}

	public String getLedztsm() {
		return ledztsm;
	}

	public void setLedztsm(String ledztsm) {
		this.ledztsm = ledztsm;
	}

	public String getLdztsm() {
		return ldztsm;
	}

	public void setLdztsm(String ldztsm) {
		this.ldztsm = ldztsm;
	}
	public void setWdbm(int wdbm) {
		this.wdbm = wdbm;
	}
	public int getWdbm() {
		return wdbm;
	}
	public int getKzqbm() {
		return kzqbm;
	}
	public void setKzqbm(int kzqbm) {
		this.kzqbm = kzqbm;
	}
	public int getMzt() {
		return mzt;
	}
	public void setMzt(int mzt) {
		this.mzt = mzt;
	}
	public int getWdzt() {
		return wdzt;
	}
	public void setWdzt(int wdzt) {
		this.wdzt = wdzt;
	}
	public int getDyzt() {
		return dyzt;
	}
	public void setDyzt(int dyzt) {
		this.dyzt = dyzt;
	}
	public int getLedzt() {
		return ledzt;
	}
	public void setLedzt(int ledzt) {
		this.ledzt = ledzt;
	}
	public int getLdzt() {
		return ldzt;
	}
	public void setLdzt(int ldzt) {
		this.ldzt = ldzt;
	}
	public int getSbpd() {
		return sbpd;
	}
	public void setSbpd(int sbpd) {
		this.sbpd = sbpd;
	}
	public int getXdcdy() {
		return xdcdy;
	}
	public void setXdcdy(int xdcdy) {
		this.xdcdy = xdcdy;
	}
	public int getTyndy() {
		return tyndy;
	}
	public void setTyndy(int tyndy) {
		this.tyndy = tyndy;
	}
	public int getWdwd() {
		return wdwd;
	}
	public void setWdwd(int wdwd) {
		this.wdwd = wdwd;
	}
	public int getSfbj() {
		return sfbj;
	}
	public void setSfbj(int sfbj) {
		this.sfbj = sfbj;
	}

	public int getWqbm() {
		return wqbm;
	}
	public void setWqbm(int wqbm) {
		this.wqbm = wqbm;
	}
	public String getWqmc() {
		return wqmc;
	}
	public void setWqmc(String wqmc) {
		this.wqmc = wqmc;
	}

	public String getKzqmc() {
		return kzqmc;
	}

	public void setKzqmc(String kzqmc) {
		this.kzqmc = kzqmc;
	}

	public int getDdyzt() {
		return ddyzt;
	}

	public void setDdyzt(int ddyzt) {
		this.ddyzt = ddyzt;
	}

	public String getDdyztsm() {
		return ddyztsm;
	}

	public void setDdyztsm(String ddyztsm) {
		this.ddyztsm = ddyztsm;
	}

	public String getSfbjsm() {
		return sfbjsm;
	}

	public void setSfbjsm(String sfbjsm) {
		this.sfbjsm = sfbjsm;
	}

	public int getBjdm() {
		return bjdm;
	}

	public void setBjdm(int bjdm) {
		this.bjdm = bjdm;
	}

	public int getKzqbsm() {
		return kzqbsm;
	}

	public void setKzqbsm(int kzqbsm) {
		this.kzqbsm = kzqbsm;
	}

	public int getSbzt() {
		return sbzt;
	}

	public void setSbzt(int sbzt) {
		this.sbzt = sbzt;
	}

	public int getWdljzt() {
		return wdljzt;
	}

	public void setWdljzt(int wdljzt) {
		this.wdljzt = wdljzt;
	}

	public String getWdljztsm() {
		return wdljztsm;
	}

	public void setWdljztsm(String wdljztsm) {
		this.wdljztsm = wdljztsm;
	}


	public int getKzqdk() {
		return kzqdk;
	}

	public void setKzqdk(int kzqdk) {
		this.kzqdk = kzqdk;
	}

	/**
	 * 是否碰撞
	 */
	public int getHasCrash() {
		return hasCrash;
	}

	public void setHasCrash(int hasCrash) {
		this.hasCrash = hasCrash;
	}


	public String getHasCrashsm() {
		return hasCrashsm;
	}

	public void setHasCrashsm(String hasCrashsm) {
		this.hasCrashsm = hasCrashsm;
	}
}
